/*
 *@Date: 2023-02-10 15:34:57
 * @LastEditTime: 2023-02-13 17:17:23
 *
 * @Description:
 */
:global {
    .el-scrollbar__view {
        height: 100%;
    }
}

.myMenu {
    border: none;

    ::v-deep .el-menu-item .is-active {
        background-color: linear-gradient(270deg, #428dd8, #bbc8ff) !important;
        color: #fff !important;
    }
}

.sysLink {
    width: 100%;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    color: #2d3d5a;
    text-overflow: ellipsis;

    &:hover {
        color: #428dd8;
        cursor: pointer;
        background-color: #ccc;
    }
}

::v-deep(.el-tree-node__expand-icon) {
    color: rgb(39, 138, 236);
    font-size: 20px;
    position: absolute;
    right: 15px;
}

::v-deep(.el-tree-node) {
    border-bottom: 1px solid #f0f0f0;
}

::v-deep(.el-tree-node__content) {
    flex-direction: row-reverse;
    height: 40px;
    line-height: 40px;
    padding-left: 55px;
    padding-right: 20px;
    font-size: 17px;

    &:hover {
        color: #ffffff;
        background: linear-gradient(to right, #8dbceb, #1b7ee5);

        .el-tree-node__expand-icon {
            color: #ffffff;
        }

        .is-leaf {
            display: none;
        }
    }
}

::v-deep(.el-tree-node__expand-icon) {
    &.expanded {
        transform: rotate(180deg);
    }
}

::v-deep(.el-tree-node__loading-icon) {
    position: absolute;
    right: 0px;
}

::v-deep(.el-tree-node__expand-icon.is-leaf) {
    color: rgba(0, 0, 0, 0);
    cursor: default;
}

::v-deep(.el-tree-node__children .worker-tree-node) {
    font-size: 14px;
    padding-left: 25px;

    .expanded {
        color: #fff;
    }
}

::v-deep(.el-tree--highlight-current .el-tree-node.is-current) > .el-tree-node__content {
    color: #ffffff;
    background: linear-gradient(to right, #428dd8, #d2e0ee);
}

.menu {
    border: none;
}

.homeBody {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #ffffff;

    .homeHeard {
        position: relative;
        height: 64px;
        width: 100%;
        padding: 0;
        background-image: url("@/assets/img/title_bg.png");
        background-repeat: no-repeat;
        border-bottom: 1px solid #e4e7ed;

        .heardTitle {
            width: 100%;
            display: flex;
            justify-content: space-between;
            position: absolute;

            .titleImg {
                margin: 0;
                height: 58px;
            }

            .titleSpan {
                display: flex;
                align-items: center;
                padding: 0 20px;
                font-size: 18px;
                // line-height: 64px;
                height: 64px;
                color: #000;
                z-index: 1;
                // font-weight: bolder;
            }
        }

        .titleDw {
            position: relative;
            float: right;
            font-size: 12px;
            color: #2d3d5a;
            top: 20px;

            .titleSsjg {
                margin-right: 10px;
            }

            .titleName {
                margin-right: 16px;
            }
        }
    }

    .userInfo {
        padding: 10px 20px;
        display: flex;
        align-items: center;

        .userImg {
            height: 36px;
            width: 36px;
            border-radius: 5px;
            border: 1px solid #f0f0f0;
        }

        .userName {
            flex: 1;
            font-size: 14px;
            color: #2d8cf0;
            padding: 0 5px;
            //处理超出部分
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .jgName {
            flex: 1;
            font-size: 12px;
            color: #2d3d5a;
            padding: 5px 5px 0;
            //处理超出部分
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .logout {
            color: red;
            cursor: pointer;
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    .homeAside {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 68px);
        background: #fff;
        .elScrollbar {
            flex: 1;
        }
        .collapse {
            height: 64px;
            font-size: 14px;
            line-height: 64px;
            padding: 0 20px;
            color: #303133;

            &:hover {
                cursor: pointer;
                background: #eef5ff;
            }
            .collapseTitle {
                display: flex;
                align-items: center;
                .collapseText {
                    padding-left: 5px;
                }
            }

            .collapseIcon {
                font-size: 18px;
            }
        }
    }

    .contentBox {
        position: absolute;
        // left: 64px;
        right: 0;
        top: 64px;
        bottom: 0;
        padding-bottom: 30px;
        -webkit-transition: left 0.3s ease-in-out;
        transition: left 0.3s ease-in-out;
        background: #f0f0f0;

        .content {
            width: auto;
            height: 100%;
            border-top: 1px solid #f0f0f0;
            padding: 0 5px;
            box-sizing: border-box;
        }
    }
}

.singleContentBox {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    -webkit-transition: left 0.3s ease-in-out;
    transition: left 0.3s ease-in-out;
    background: #f0f0f0;

    .singleContent {
        width: auto;
        height: 100%;
        box-sizing: border-box;
    }
}

ul {
    list-style-type: none;
    /* 去掉每个 ul 和 li 前面的圆点 */
}
